package com.wanmait.wanmarecruit.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
import java.util.Set;

import lombok.Data;

/**
* Created by Mybatis Generator 2022/09/19
*/
@Data
@TableName(value = "manager")
public class Manager implements Serializable {
     @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 管理员名称
     */
    @TableField(value = "name")
    private String name;

    /**
     * 管理员密码
     */
    @TableField(value = "pass")
    private String pass;

    /**
     * 管理员ip
     */
    @TableField(value = "ip")
    private String ip;

    /**
     * 管理员上次登录时间
     */
    @TableField(value = "login_time")
    private Date loginTime;

    /**
     * 0为普通管理员，1为超级管理员
     */
    @TableField(value = "level")
    private Boolean level;

    @TableField(exist = false)
    private List<ManageRole> manageRoles;

    private static final long serialVersionUID = 1L;

    public static final String COL_NAME = "name";

    public static final String COL_PASS = "pass";

    public static final String COL_IP = "ip";

    public static final String COL_LOGIN_TIME = "login_time";

    public static final String COL_LEVEL = "level";
}